<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8" %>
<%@ include file="/admin/include/init_admin.jsp" %>
<%@ page import="com.joinhawaii.admin.sales.*" %>
<%

	HashList code007	= CommonUtil.getCodeList("007");	//호텔구분
	HashList code100	= CommonUtil.getCodeList("100");	//여행구분
	HashList code118	= CommonUtil.getCodeList("118");	//여행인원
	HashList code120	= CommonUtil.getCodeList("120");	//견적의뢰상태


	String job_type			= StringUtil.nvl(request.getParameter("job_type"), "U");
	String req_id			= StringUtil.nvl(request.getParameter("req_id"));



	HashMap infos = new HashMap();
	infos.put("req_id",	req_id);


	SalesDAO dao 	= new SalesDAO();
	HashList list 	= dao.selectReqInfo(infos);		//견적의뢰




%>

				<form id="saveForm" method="post" action="">
				<input type="hidden" name="job_type" id="job_type" value="<%= job_type %>"/>
				<input type="hidden" name="req_id" value="<%= list.get("req_id", 0) %>"/>
				<input type="hidden" name="req_gubn" value="1"/>

				<table cellpadding="0" cellspacing="0" class="table_01 mt5">
				<colgroup>
					<col width="100px"/>
					<col width="360px"/>
					<col width="100px"/>
					<col/>
				</colgroup>
				<tbody>
					<tr>
						<th><p>고객명</p></th>
						<td>
							<input type="text" name="customer_name" class="w200" value="<%= list.get("customer_name", 0) %>"  />
						</td>
						<th><p>이메일</p></th>
						<td class="brx">
							<input type="text" name="email_addr" class="w200" value="<%= list.get("email_addr", 0) %>"  />
						</td>
					</tr>
					<tr>
						<th><p>연락처</p></th>
						<td>
							<input type="text" name="phone_no" class="w200" value="<%= list.get("phone_no", 0) %>"  />
						</td>
						<th><p>비밀번호</p></th>
						<td class="brx">
							<input type="text" name="password" class="w200" value="<%= list.get("password", 0) %>"  />
						</td>
					</tr>
					<tr>
						<th><p>여행일정</p></th>
						<td>
							<select name="travel_type" class="w200">
							<%= StringUtil.makeOption(code007, list.get("travel_type", 0)) %>
							<option value="ETC" <%= StringUtil.selected("ETC", list.get("travel_type",0)) %>>기타</option>
						  	</select>
							<input type="text" name="travel_etc" class="w120" value="<%= list.get("travel_etc", 0) %>"  />
						</td>
						<th><p>출발일자</p></th>
						<td class="brx">
							<input type="text" name="start_dt" id="start_dt" class="w90 c" value="<%= list.get("start_dt", 0) %>"  />
						</td>
					</tr>
					<tr>
						<th><p>여행인원</p></th>
						<td colspan="3" class="brx">
							<select name="adult_count" class="w120">
							<option value="0">성인</option>
							<%= StringUtil.makeOption(code118, list.get("adult_count", 0)) %>
						  	</select>
						  	<select name="child_count" class="w120">
							<option value="0">소아</option>
							<%= StringUtil.makeOption(code118, list.get("child_count", 0)) %>
						  	</select>
						  	<select name="baby_count" class="w120">
							<option value="0">유아</option>
							<%= StringUtil.makeOption(code118, list.get("baby_count", 0)) %>
						  	</select>
						</td>
					</tr>
					<tr>
						<th><p>여행종류</p></th>
						<td colspan="3" class="brx">
							<%= StringUtil.makeRadio(code100, "travel_gubn", list.get("travel_gubn", 0)) %>
						</td>
					</tr>
					<tr>
						<th><p>1인예상금액</p></th>
						<td>
							<input type="text" name="est_amt" id="est_amt" class="w100 r" value="<%= list.get("est_amt", 0) %>"  /> 만원
						</td>
						<th><p>견적일자</p></th>
						<td class="brx">
							<%= StringUtil.toDate(list.get("req_dt", 0)) %>
						</td>
					</tr>
					<tr>
						<th><p>처리결과</p></th>
						<td>
							<select name="req_status" class="w120">
							<%= StringUtil.makeOption(code120, list.get("req_status", 0)) %>
						  	</select>
						</td>
						<th><p></p></th>
						<td class="brx">

						</td>
					</tr>
					<tr>
						<th><p>문의사항</p></th>
						<td colspan="3" class="brx">
							<textarea name="req_info" id="req_info" style="width:860px; height:120px"><%= list.get("req_info", 0) %></textarea>
						</td>
					</tr>
					<tr>
						<th><p>진행사항</p></th>
						<td colspan="3" class="brx">
							<textarea name="res_info" id="res_info" style="width:860px; height:120px"><%= list.get("res_info", 0) %></textarea>
						</td>
					</tr>
				</tbody>
				</table>


				</form>

